<%@ Page Language="C#" MasterPageFile="~/Admin/BoardAdmin.Master" AutoEventWireup="true" CodeBehind="ManageGroups.aspx.cs" Inherits="UserInterface.Admin.ManageGroups"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h1><%= GetLocalResourceObject("Header") %></h1>
    <div class="options">
        <input type="button" onclick="location='NewGroup.aspx';" value="<%= GetLocalResourceObject("NewGroup") %>">
    </div>
    <asp:Repeater ID="GroupsRepeater" runat="server">
       <HeaderTemplate>
            <table class="default-table">
                <tr>
                    <th class="default-option-width"><%= GetLocalResourceObject("Group") %></th>
                    <th><%= GetLocalResourceObject("Options") %></th>
                </tr>
        </HeaderTemplate>
        
        <ItemTemplate>
                <tr>
                    <td class="default-data-column"><%# Eval("Name") %></td>
                    <td class="default-data-column"><a href="EditGroup.aspx?groupId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditGroup") %></a> | <a href="EditGroupPermissions.aspx?groupId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditGroupPermissions") %></a></td>
                </tr>
        </ItemTemplate>
        
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-data-column"><%# Eval("Name") %></td>
                    <td class="alternate-data-column"><a href="EditGroup.aspx?groupId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditGroup") %></a> | <a href="EditGroupPermissions.aspx?groupId=<%# Eval("Id") %>"><%= GetLocalResourceObject("EditGroupPermissions") %></a></td>
                </tr>
        </AlternatingItemTemplate>
        
        <FooterTemplate>
            </table>
        </FooterTemplate>
     </asp:Repeater>
</asp:Content>
